{% block head_block %}
    <!DOCTYPE html>
    <html lang="en">
    <head>
        {% load static %}
        <link rel="stylesheet" href="{% static 'mytest/style.css' %}">
        <meta charset="UTF-8">
        <title>My Tools</title>
    </head>
{% endblock head_block %}
<body>
<div>
    <div><h1>Sign in to TestBench</h1></div>
    <div class="container">

        {% if error_message %}
            <div class="error">{{ error_message }}</div>
        {% endif %}

        <form method="post" novalidate>
            {% csrf_token %}
            <div class="card-user_name">
                <label>
                    {#                    <input type="text" name="username" placeholder="请输入用户名" data-encrypt="true" id="username">#}
                    {{ form.username.label }}
                    {{ form.username }}
                    <span style="color: red;">{{ form.username.errors.0 }}</span>

                </label>
            </div>
            <div class="card-user_passwrd">
                <label>
                    {#                    <input name="password" type="password" placeholder="请输入密码" data-encrypt="true" id="password">#}
                    {{ form.password.label }}
                    {{ form.password }}
                    <span style="color: red;">{{ form.password.errors.0 }}</span>
                </label>
            </div>
            <input type="submit" value="Sign in">
        </form>
        <p>还没有账号？<a href="#">立即注册</a></p>
    </div>
</div>

</body>
</html>